<template>
  <div>
    <itemA></itemA>
  </div>
</template>

<script>
  import itemA from '../components/a'
  import {provide} from 'vue'
  // 从 vuex 中导入 useStore 方法

  export default {
    name: "provide",
    components: {itemA},
    setup() {
      const obj = {
        name: "Vue",
        age: 3,
      }

      provide('info', obj)
    }
  }
</script>

<style scoped>

</style>